package com.nostop.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class TestVo {

    @NotBlank//不允许为空
    private String msg;

    @NotNull(message = "id不能为空")//不允许为Null
    @Max(value = 10,message = "id不能大于10")
    private Integer id;

    //list用的是notEnpty
    //@NotEmpty
    private List<String > list;
}
